package sz.szsmk.citizencard.ui.activity;

import android.os.Bundle;
import androidx.annotation.Nullable;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.chenenyu.router.annotation.Route;

import sz.szsmk.citizencard.R;
import sz.szsmk.citizencard.ui.dzsmkavtivity.AppBaseActivity;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/25 14:17
 * description:
 */
@Route("manual")
public class WebViewActivity extends AppBaseActivity {

    WebView wv_qr;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getComponent().inject(this);
        setContentView(R.layout.qr_activity_webview);
        WebSettings ws = wv_qr.getSettings();
        ws.setJavaScriptEnabled(true);//开启JavaScript支持
        wv_qr.loadUrl("file:///android_asset/Manual.html");
    }

    @Override
    protected CharSequence getTopTitle() {
        return "使用说明";
    }
}
